# *
# * @Author: wevsmy 
# * @Date: 2017-10-30 22:25:00 
# * @Last Modified by:   wevsmy 
# * @Last Modified time: 2017-10-30 22:25:00 
# *


import gevent

def f(n):
    for i in range(n):
        print("%s,%s"%(gevent.getcurrent(), i))

g1 = gevent.spawn(f, 5)
g2 = gevent.spawn(f, 5)
g3 = gevent.spawn(f, 5)
g1.join()
g2.join()
g3.join()